﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.Login.LoginModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>用户登录</title>
    <script src='<%=Url.Content("~/Scripts/jquery-1.4.2.js")%>' type="text/javascript"></script>
    <script src='<%=Url.Content("~/Scripts/jquery.validate.pack.js")%>' type="text/javascript"></script>
    <script src='<%=Url.Content("~/Scripts/MicrosoftMvcJQueryValidation.js")%>' type="text/javascript"></script>
    <link href='~/Content/comm.css' rel="stylesheet" type="text/css" />
    <link href="~/Content/adminlogin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="body">
        <%Html.EnableClientValidation(); %>
        <%Html.BeginForm(); %>
        <ul class="login_content">
            <li>
                <h2>管理员登录</h2>
            </li>
            <% if (ViewData.ModelState["LoginError"] != null) %>
            <% { %>
            <li class="li1">
                <%=Html.ValidationMessage("LoginError") %></li>
            <% } %>
            <li class="li1">用户名:<%=Html.ValidationMessageFor(p => p.LoginName, "", new{@class="validation" })%></li>
            <li class="li1">
                <input type="text" name="LoginName" id="LoginName" tabindex="1" class='txt width250' />
            </li>
            <li class="li1">密&nbsp;&nbsp;码:<%=Html.ValidationMessageFor(p => p.LoginPwd, "", new{@class="validation" })%></li>
            <li class="li1">
                <input type="password" name="LoginPwd" id="LoginPwd" class='txt width250' tabindex="2" />
            </li>
            <li class="li1">验证码:<%=Html.ValidationMessageFor(p=>p.CheckCode,"",new {@class="validation"})%></li>
            <li class="li1">
                <table width="100%">
                    <tr>
                        <td align="left"><input type="text" name="CheckCode" id="CheckCode" class='txt width100' tabindex="3" /></td>
                        <td align="right"><img class="checkimg" src='<%=Url.Content("~/Login/CheckCode/Manage_Login") %>' onclick="this.src='<%=Url.Content("~/Login/CheckCode/Manage_Login") %>?'+ Math.random()" alt="点击换一张" /></td>
                    </tr>
                </table>
            </li>
            <li class="li2">
                <table width="100%" height="50px">
                    <tr>
                        <td align="center">
                            <input type="submit" tabindex="7" class='login_btn' value='登录' />
                        </td>
                    </tr>
                </table>
            </li>
        </ul>
        <%Html.EndForm(); %>
    </div>
</body>
</html>
